package com.user.write.dao;

import com.user.write.dto.UserDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Desecription TODO 1.2新增
 * @Author zzw
 * @Date 2021/3/22 9:09
 * @Version 1.2
 **/
@Mapper
@Repository
public interface UserMapper {
    //增加个人信息
    int addOne(UserDTO userDTO);
    //根据id修改个人信息
    void updateOne(UserDTO userDTO);
    //根据id删除个人信息
    void deleteOne(int id);

    int addMany(List<UserDTO> list);
}
